package com.atguigu.mybatis.mapper;

import com.atguigu.mybatis.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @date: 2022/3/3 10:09
 * @description:
 */
public interface ParameterMapper {

    User checkUserByParam(@Param("username") String username, @Param("password") String password);

    List<User> getAllUsers();

    List<User> getUserByUsername(String username);

    User checkUser(String username,String password);

    User checkLoginByMap(Map<String,Object> map);

    int insertUser(User user);

}
